import request from '@/utils/request'

// 查询医院患者数据列表
export function listHospital_data(query) {
  return request({
    url: '/hospital/hospital_data/list',
    method: 'get',
    params: query
  })
}

// 查询医院患者数据详细
export function getHospital_data(id) {
  return request({
    url: '/hospital/hospital_data/' + id,
    method: 'get'
  })
}

// 新增医院患者数据
export function addHospital_data(data) {
  return request({
    url: '/hospital/hospital_data',
    method: 'post',
    data: data
  })
}

// 修改医院患者数据
export function updateHospital_data(data) {
  return request({
    url: '/hospital/hospital_data',
    method: 'put',
    data: data
  })
}

// 删除医院患者数据
export function delHospital_data(id) {
  return request({
    url: '/hospital/hospital_data/' + id,
    method: 'delete'
  })
}
